package day40.edu;
// Created: 10/15/2025, ChangJiang Ru
public class Person {
    private String name;
    public int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private void show()
    {
        System.out.println("You is a good person" + ", nation is :");
    }

    private void showNation(String nation)
    {
        System.out.println("My nation is : " + nation);
    }

    @Override
    public String toString()
    {
        return "Name: " + this.getName() + " ,Age : " + this.getAge();
    }
}
